package com.eogo.user.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "tb_user")
@ApiModel(description = "用户实体数据")
public class User {

    @Id
    @KeySql(useGeneratedKeys = true)

    private Long id;
    private String username;//登录名
    private String password;
    private String account;//用户名
    private String phone; //电话
    private Integer age; //年龄
    private String address; //地址
    private String qq; //QQ
    private String weixin;//微信
    private String email;//邮件
    private Integer sex;//性别 1、男 2、女
    private Date birthday; //出生日期

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date created;//创建时间

}
